package com.bs.sc.mgr.user.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.bs.sc.base.entity.BaseEntity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.NonNull;

@Data
@NoArgsConstructor
@Entity
@Table(name = "mgr_user")
@EqualsAndHashCode(callSuper = true)
public class MgrUser extends BaseEntity {
	@NonNull
	@Column(name = "user_name", length = 64, unique = true, nullable = false)
	private String userName;
	@NonNull
	@Column(name = "password", length = 32, nullable = false)
	private String password;
	@Column(name = "phone", length = 11)
	private String phone;
	@Column(name = "real_name", length = 128)
	private String realName;
	@Column(name = "email", length = 128)
	private String email;
}
